<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'province.label', default: 'Province')}"/>
    <title>省份详情</title>
</head>

<body class="fixed-navbar fixed-sidebar">
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>贷款管理系统</li>
                    <li>
                        <g:link controller="province" action="index">省份列表</g:link>
                    </li>
                    <li class="active">
                        <span>省份详情</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                省份详情
            </h2>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <g:if test="${flash.message}">
            <div class="message alert alert-info" role="status">${flash.message}
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                        aria-hidden="true">×</span></button>
            </div>
        </g:if>
        <div class="hpanel horange">
            <div class="panel-heading">
                <div class="panel-tools">
                    <g:form resource="${this.province}" method="DELETE">
                        <g:link class="btn btn-info btn-xs" action="edit" resource="${this.province}"><i
                                class="fa fa-edit"></i>编辑</g:link>
                        <button type="button" class="deleteBtn btn btn-danger btn-xs">
                            <i class="fa fa-trash-o"></i>
                            删除
                        </button>
                    </g:form>
                </div>
                省份详情
            </div>
            <div class="panel-body">
                <div class="text-muted font-bold m-b-xs ol-md-6">
                    <div class="col-md-12">
                        <h4><a href=>${this.province?.name}</a></h4>
                    </div>
                </div>
            </div>

        </div>

    </div>
    <div class="row">
        <div class="hpanel hyellow">
            <div class="panel-heading hbuilt">
                <div class="panel-tools">
                    <g:link class="btn btn-info btn-xs" controller="city" action="create" params="[province: this.province.id]"><i class="fa fa-plus"></i>添加</g:link>
                </div>
                下属城市
            </div>
            <div class="panel-body no-padding">
                <ul class="list-group">
                    <g:each in="${this.province?.cities}">
                        <li class="list-group-item">
                            <div class="pull-right">
                                <g:form controller="city" action="delete" id="${it.id}" method="DELETE">
                                    <button class="deleteBtn btn btn-danger btn-outline btn-xs" type="button"><i class="fa fa-trash-o"></i> 删除</button>
                                </g:form>
                            </div>
                            <g:link controller="city" action="show" id="${it.id}">${it.name}</g:link>
                        </li>
                    </g:each>
                </ul>
            </div>
        </div>
    </div>
</div>
</body>

</html>
